
<script type="text/javascript">
function modifySHPWD(){
	var pop_input_alert = $('#k_confirm_div').find('#pop_input_alert');
	pop_input_alert.text('');
	var mpwd_opt = $('#k_confirm_div').find('#mpwd_opt').val();
	var adminnewpwd = $.trim($('#k_confirm_div').find('#adminnewpwd').val());
	var checkernewpwd = $.trim($('#k_confirm_div').find('#checkernewpwd').val());
	$('#k_confirm_div').find('#adminnewpwd').val(adminnewpwd);
	$('#k_confirm_div').find('#checkernewpwd').val(checkernewpwd);

	if(mpwd_opt=='admin'&&adminnewpwd==''){
		pop_input_alert.text('请录入新管理员密码！');
		return;
	}
	if(mpwd_opt=='checker'&&checkernewpwd==''){
		pop_input_alert.text('请录入新验证员密码！');
		return;
	}
	$.kajax({      
		ajx_rtn_type:'JSON',
		url: "{:U('/Partner/domodifypwd')}" ,      
		type:'post',
		data:{ 	mpwd_opt:mpwd_opt
				,adminnewpwd:adminnewpwd  
				,checkernewpwd:checkernewpwd
				,partner_id:"{$_REQUEST['partner_id']}"
			 },
		//async: false ,
		success: function(obj){ 
			//alert(obj);
			if(obj.status==1){
				k_success(obj.msg);
			}else{
				k_error(obj.msg);
			}
		}
	});
}
function _tmp_pop_shmodifypwdstyle(nav_rel_){
	k_changeGroupStyle('k_confirm_div',' #sh_modifypwd_nav > ul > li > a ',nav_rel_,'on');
	k_changeGroupStyle('pop_sh_opt_show',' div ',nav_rel_,'show');
	$('#k_confirm_div').find('#mpwd_opt').val(nav_rel_);
}
</script>
<div style="width:340px;" class="pop_form alL" id="k_confirm_div">
	
	<div id="sh_modifypwd_nav" class="tab-menu"><!-- 切换标签 begin  -->
		<ul>
		    <li><a href="javascript:_tmp_pop_shmodifypwdstyle('admin');" class="on" rel="admin" >
		    				<span>管理员密码</span></a></li>
		    <li><a rel="checker" href="javascript:_tmp_pop_shmodifypwdstyle('checker');"><span>验证员密码</span></a></li>
		    <li><a rel="nopwd" href="javascript:_tmp_pop_shmodifypwdstyle('nopwd');"><span>验证员不需密码</span></a></li>
	  	</ul>
	</div>
	
	<div class="c"></div>
	<div class="pop_form_li" style="margin-right:10px">
		<div id="pop_sh_opt_show">
		<div rel="admin" class="hidden show" style="text-align: center; margin:10px 20px">
		新&nbsp;&nbsp;&nbsp;密&nbsp;&nbsp;&nbsp;码：<input type="text" value="" id="adminnewpwd" class="normal_input" style="width:150px" title="录入新管理员登录密码！">
		</div>
		<div rel="checker" class="hidden"  style="text-align: center; margin:10px 20px">
		验证员密码：<input type="text" value="" id="checkernewpwd" class="normal_input" style="width:150px" title="录入新验证员登录密码！">
		</div>
		<div rel="nopwd" class="hidden"  style="text-align: center; margin:10px 20px">
			确定验证员不需密码即可登录么？
		</div>
		</div>
	</div>
	<div class="c"></div>
	<div class="answers" style="">
	<span style="color:red;float:left;font-weight:bold;margin:0px 0px 0px 8px;" id='pop_input_alert'></span>
	<input type="hidden" value="admin" id="mpwd_opt">
	<input type="hidden" value="partner" id="partner_id">
	<input type="button" class="btn_ok" onclick="modifySHPWD()" value="确定" id="k_confirm_btn">
	<input type="button" class="btn_cancel" onclick="ui.box.close()" value="取消" id="k_confirm_btn">
	</div>
</div>